package com.gopay.common.domain.riskcontrol;

import com.gopay.common.domain.BaseEntity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by Lenovo-songfengli on 2016/9/18.
 */
@Entity
@Table(name = "RC_LEVEL_CONFIG")
public class RcLevelConfig extends BaseEntity{
    /** 风险等级 */
    @Id
    @Column(name="RC_LEVEL")
    private String rcLevel;
    /** 风险等级说明 */
    @Column(name="EXPLANATION", length=100)
    private String explanation;
    /** 分值下限 */
    @Column(name="SCORE_LOW")
    private BigDecimal scoreLow;
    /** 分值上限 */
    @Column(name="SCORE_HIGH")
    private BigDecimal scoreHigh;
    /** 创建时间 */
    @Column(name="CREATED_TS")
    private Date createdTs;
    /** 最后操作时间 */
    @Column(name="LAST_UPD_TS")
    private Date lastUpdTs;
    /** 最后操作用户id  */
    @Column(name="LAST_UPD_USER_ID", length=10)
    private String lastUpdUserId;
    /** 乐观锁版本号 */
    @Version
    @Column(name = "VERSION")
    private Integer version;

    public String getRcLevel() {
        return rcLevel;
    }

    public void setRcLevel(String rcLevel) {
        this.rcLevel = rcLevel;
    }

    public String getExplanation() {
        return explanation;
    }

    public void setExplanation(String explanation) {
        this.explanation = explanation;
    }

    public BigDecimal getScoreLow() {
        return scoreLow;
    }

    public void setScoreLow(BigDecimal scoreLow) {
        this.scoreLow = scoreLow;
    }

    public BigDecimal getScoreHigh() {
        return scoreHigh;
    }

    public void setScoreHigh(BigDecimal scoreHigh) {
        this.scoreHigh = scoreHigh;
    }

    public Date getCreatedTs() {
        return createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

    public Date getLastUpdTs() {
        return lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }

    public String getLastUpdUserId() {
        return lastUpdUserId;
    }

    public void setLastUpdUserId(String lastUpdUserId) {
        this.lastUpdUserId = lastUpdUserId;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
}
